﻿/**********************************************
 * 功能名称：闲置生产能力报表
编写人：  杨莹
建立时间： 杨 2009年5月20日
说明：
*显示当前会计期间的各层级闲置生产能力报表。
 **************************************************************/
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Hisun.Models;
using Hisun.Controllers;
using System.Collections.Generic;

namespace Hisun.View.ReportQuery
{
    public partial class Reprot_XZSCLLBB : AbcPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AbcFullAccountPeriod MyFullAp = new AbcFullAccountPeriod();

                MyFullAp.FullAccountPeriodToDropdownlist_Year(DropDownList_Year,Application["accountPeriod"].ToString());

            
            }
        }

        protected void Button_QueryLine_Click(object sender, EventArgs e)
        {
            CostReport MyReport = new CostReport();
            string myYear = DropDownList_Year.SelectedValue.ToString();
            string UserName = Session[ServerVars.sysSessionUserName].ToString();
            string myHtmlReport = "";
            myHtmlReport = MyReport.WriteExcel_Report_XZSCLLBB("1", myYear, UserName);
            Response.Redirect("/Report/UserReport/" + myHtmlReport + ".html");
        }
    }
}
